#!/bin/bash

OS_TOKEN=gAAAAABmGkMp9dXfUu3i2my4rMwkSc3Ng_dsgFg3CTG1k7BW6qsntVk3b0RByZEhZGwp4zZthWE-nAPYs6aYtqqL39YiBEAt1xvOjxDdJJ5LbOjEZzOTCrNr2p_28ghR5jkIDhmje28aYXGIa8JlH2Tt5pT9cf6vmA

curl -i \
  -H "Content-Type: application/json" \
  -d '
{ "auth": {
    "identity": {
      "methods": ["token"],
      "token": {
        "id": "'$OS_TOKEN'"
      }
    },
    "scope": {
      "project": {
        "name": "admin",
        "domain": {"id": "default"}
      }
    }
  }
}' \
  "http://192.168.31.240:5000/v3/auth/tokens" ; echo
